package com.redsoft.epip.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.redsoft.epip.entity.Goods;
import com.redsoft.spirit.dao.BaseRepository;

/**
 * 
 * 
 * <pre>
 * 
 * </pre>
 * 
 * @author 
 * @since 1.0
 */
public interface GoodsRepository extends BaseRepository<Goods, Integer> {

	@Modifying
	@Query("update Goods g set g.deleted = 1 where g.id = ?1")
	void deleteById(int id);

}
